<?php

use Faker\Generator as Faker;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generateUrl new
| model instances for testing / seeding your application's database.
|
*/

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\Panx\SkinRecordBonus::class, function (Faker $faker) {
    return [
        'bonusable_id'     => 0,
        'bonusable_type'   => 'StoreAdmin',  // StoreAdmin / WechatUser,
        'amount'           => $faker->numberBetween(1, 10),
        'skin_record_id'   => 0,
        'pay_type'         => $faker->numberBetween(1, 2),
        'biz_no'           => $faker->name,
        'data'             => [],
        'bonus_status'     => $faker->numberBetween(0, 1),
    ];
});
